/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdModelManagementOriginalPart;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 模型管理原始装机清单业务对象 isfd_model_management_original_part
 *
 * @author hxloongs
 * @date 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdModelManagementOriginalPart.class, reverseConvertGenerate = false)
public class IsfdModelManagementOriginalPartBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 层次
     */
    @NotNull(message = "层次不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long level;

    /**
     * 主部段
     */
    @NotBlank(message = "主部段不能为空", groups = {AddGroup.class, EditGroup.class})
    private String mainSectionName;

    /**
     * 部段
     */
    @NotBlank(message = "部段不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sectionName;

    /**
     * ATA系统
     */
    @NotBlank(message = "ATA系统不能为空", groups = {AddGroup.class, EditGroup.class})
    private String ata;

    /**
     * 零组件编号
     */
    @NotBlank(message = "零组件编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String partNumber;

    /**
     * 零件名称
     */
    @NotBlank(message = "零件名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 版本
     */
    @NotBlank(message = "版本不能为空", groups = {AddGroup.class, EditGroup.class})
    private String versionNumber;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private String status;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long amount;

    /**
     * 单位重量（KG）
     */
    @NotNull(message = "单位重量（KG）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String unitWeight;

    /**
     * 关重件
     */
    @NotBlank(message = "关重件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String importantParts;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 架次有效性
     */
    @NotBlank(message = "架次有效性不能为空", groups = {AddGroup.class, EditGroup.class})
    private String effectiveSorties;

    /**
     * 所属DCI编号
     */
    @NotBlank(message = "所属DCI编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dciNumber;

    /**
     * 是否为变形件原件
     */
    @NotBlank(message = "是否为变形件原件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String originalDeformedPartsFlag;

    /**
     * 附注信息
     */
    @NotBlank(message = "附注信息不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remarks;

    /**
     * 快速更改单编号
     */
    @NotBlank(message = "快速更改单编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String quicklyChangeNumber;

    /**
     * ECP编号
     */
    @NotBlank(message = "ECP编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String ecpNumber;

    /**
     * 供应商设备编号
     */
    @NotBlank(message = "供应商设备编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String supplierQuipmentNumber;

    /**
     * 供应商版本号
     */
    @NotBlank(message = "供应商版本号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String supplierVersionNumber;

    /**
     * 供应商代号
     */
    @NotBlank(message = "供应商代号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String supplierNumber;

    /**
     * ETSI编号
     */
    @NotBlank(message = "ETSI编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String etsiNumber;

    /**
     * ETSI版本
     */
    @NotBlank(message = "ETSI版本不能为空", groups = {AddGroup.class, EditGroup.class})
    private String etsiVersion;

    /**
     * ETSI备注
     */
    @NotBlank(message = "ETSI备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String etsiRemarks;

    /**
     * 材料
     */
    @NotBlank(message = "材料不能为空", groups = {AddGroup.class, EditGroup.class})
    private String material;

    /**
     * 机型
     */
    private String modelNumber;

    private List<String> sectionNameList;
}
